package com.ruoyi.departmentdisease.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.departmentdisease.mapper.DepartmentDiseaseMapper;
import com.ruoyi.departmentdisease.domain.DepartmentDisease;
import com.ruoyi.departmentdisease.service.IDepartmentDiseaseService;

/**
 * 【科室病种关联表】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-02
 */
@Service
public class DepartmentDiseaseServiceImpl implements IDepartmentDiseaseService 
{
    @Autowired
    private DepartmentDiseaseMapper departmentDiseaseMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param departmentId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public DepartmentDisease selectDepartmentDiseaseByDepartmentId(Long departmentId)
    {
        return departmentDiseaseMapper.selectDepartmentDiseaseByDiseaseId(departmentId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param departmentDisease 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<DepartmentDisease> selectDepartmentDiseaseList(DepartmentDisease departmentDisease)
    {
        return departmentDiseaseMapper.selectDepartmentDiseaseList(departmentDisease);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param departmentDisease 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertDepartmentDisease(DepartmentDisease departmentDisease)
    {
        return departmentDiseaseMapper.insertDepartmentDisease(departmentDisease);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param departmentDisease 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateDepartmentDisease(DepartmentDisease departmentDisease)
    {
        return departmentDiseaseMapper.updateDepartmentDisease(departmentDisease);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param departmentIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDepartmentDiseaseByDepartmentIds(Long[] departmentIds)
    {
        return departmentDiseaseMapper.deleteDepartmentDiseaseByDepartmentIds(departmentIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param departmentId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDepartmentDiseaseByDepartmentId(Long departmentId)
    {
        return departmentDiseaseMapper.deleteDepartmentDiseaseByDepartmentId(departmentId);
    }
}
